package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.WechatPayClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-01 13:44
 */
@FeignClient(value = "wechat-pay",fallbackFactory = WechatPayClientFallback.class)
public interface WechatPayClient{
    @PostMapping("wechatPay/pay")
    Result pay(@RequestBody Map<String,String> orderInfoMap);

    @PostMapping("wechatPay/checkPayed")
    Result checkPayed(String orderId);
}
